package com.zfx.bean;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class LubanFactoryBean implements  FactoryBean<UserEntity> {
	@Override
	public UserEntity getObject() throws Exception {
		UserEntity userEntity = new UserEntity();
		userEntity.setName("少鹏");
		userEntity.setAge(10);
		userEntity.setSex("女人");
		return userEntity;
	}
	@Override
	public Class<?> getObjectType() {
		return UserEntity.class;
	}
}
